<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="manystore/shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('监控平台')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-monitor_id" data-rule="required" data-source="manystore/monitor/index" class="form-control selectpage" name="row[monitor_id]" type="text" value="{$row.monitor_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('监控设备')}:</label>

        <div class="col-xs-12 col-sm-8">
            <input id="c-monitor_info_ids" data-rule="required" class="form-control selectpage" data-multiple="true" name="row[monitor_info_ids]" type="text" value="{$row.monitor_info_ids|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('监控设备')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="form-inline" data-toggle="cxselect" data-selects="first,second">-->
<!--                <select class="first form-control" name="row[monitor_id]" data-url="ajax/monitor"></select>-->
<!--                <select class="second form-control" name="row[monitor_info_id]" data-url="ajax/monitorinfo" data-query-name="monitor_id"></select>-->
<!--            </div>-->

<!--            &lt;!&ndash;            <input id="c-monitor_info_ids" data-rule="required" data-source="manystore/monitor_info/index" class="form-control selectpage" data-multiple="true" name="row[monitor_info_ids]" type="text" value="">&ndash;&gt;-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('开放时间')}:</label>
        <div class="col-xs-12 col-sm-8">
          <div class="row">
              <div class="col-xs-6 col-sm-6">
                  <input id="c-starttimes" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[starttimes]" type="text" value="{:date('H:i:s')}">
              </div>
              <div class="col-xs-6 col-sm-6">
                  <input id="c-endtimes" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[endtimes]" type="text" value="{:date('H:i:s')}">
              </div>
          </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('开放日')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="checkbox">
                {foreach name="weekList" item="vo"}
                <label for="row[week][]-{$key}"><input id="row[week][]-{$key}" name="row[week][]" type="checkbox" value="{$key}" {in name="key" value=""}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
